package Inherit.inheritance;

public class ManagerTest {
    public static void main(String[] args){

        //construct aManager object
        Manager boss=new Manager("Carl Cracker",80000,1987,12,15);
        boss.setBounds(5000);

        Employee[] staff=new Employee[3];

        //fill the staff array with Manager and Employee objects
        staff[0]=boss;
        staff[1]=new Employee("Harry Hacker",50000,1989,10,1);
        staff[2]=new Employee("Tommy Tester",40000,1990,3,15);

        //Print out information about all employee objects
        for(Employee e:staff)
            System.out.println("name= "+e.getName()+'\n'+
                    "salary="+e.getSalary());
    }
}
